#-*-coding:utf-8-*-
lines = []
with open("generic.rc","r", encoding='UTF-8') as f:
    lines = f.readlines()

temp = []
for line in lines:
    if line.find('#') != -1:
        line = line[6:]
        print(line)

    temp.append(line)

with open("generic.rc", 'w', encoding='UTF-8') as f:
    f.writelines(temp)